﻿<div class="form-horizontal" style="margin:20px  auto auto 100px; " ms-controller="HDBMITEMADD">
    <div class="form-group">
        <label class="col-xs-3 control-label text-right"><span class="Required">*</span>联系人</label>
        <div class="col-xs-5">
            <input type="text" ms-duplex="modelData.BMLxr" class="form-control  szhl_require" placeholder="请输入联系人" />
        </div>
    </div>
    <div class="form-group">
        <label class="col-xs-3 control-label text-right "><span class="Required">*</span>联系电话</label>
        <div class="col-xs-5">
            <input type="text" ms-duplex="modelData.BMLxDH" class="form-control  szhl_Phone" placeholder="请输入联系电话" />
        </div>

    </div>
    <div class="form-group">
        <label class="col-xs-3 control-label text-right "><span class="Required">*</span>报名人数</label>
        <div class="col-xs-5">
            <input type="text" ms-duplex="modelData.BMCount" class=" form-control szhl_Int" placeholder="请输入报名人数" />
        </div>
    </div>
</div>
    <script>

        var strId = ComFunJS.getQueryString("ID");
        var model = avalon.define({
            $id: "HDBMITEMADD",
            modelData: { "BMLxDH": "", "BMLxr": "", "BMCount": "", "HDID": strId }
        });
        function getdata() {
            var modelValue = JSON.stringify(model.modelData.$model);
            return { Action: "ADDHDBMITEM", P1: modelValue };
        }
        avalon.ready(function () { 
            //编辑加载数据
            $.getJSON('/API/FTAPI.ashx?Action=GETHDBMITEMBYUSER', { P1: strId }, function (resultData) {
                if (resultData.ErrorMsg == "" && resultData.Result !="") {
                    model.modelData = resultData.Result;
                }
            })
        })
    </script>
